/** The player's mobile which implements special logic and interfaces.
*/
function PlayerMobile()
{
	Mobile.prototype.init.call(this,
		{
			name:				"Eddy Vance",
			character:			Char.FACE_FILLED,
			fg:					Color.white,
			bg:					null,
			str:				14,
			agi:				11,
			end:				12,
			hp:					100,
			sp:					100,
			level:				1,
			exp:				71,
			ac:					5,
			visibilityRange:	20,
			_skill_athletics:	20,
			_skill_boxing:		0,
			_skill_defense:		20,
			_skill_fighting:	30,
			_skill_judo:		0,
			_skill_kungfu:		0,
			_skill_making:		0,
			_skill_wrestling:	0,
			_skill_throwing:	20,
			controllerDesc:		null
		}
	);
}
PlayerMobile.prototype = new Mobile();
/** Handle player death.
 *
 * Right now we just splash a game over message and bail out to the main menu.
 * TODO Add better handling, saveable score record, etc.
 */
PlayerMobile.prototype.die = function()
{
	this._doDeathMessage();
	dhack.addModeHandler(
		new MenuListMode(
			host.screen,
			30,
			"%90You have died.",
			null,
			function() {
				dhack.deleteSaveFile();
				dhack.enterTitleMode();
			},
			null,
			false,
			false,
			true
		)
	);
}
ron.registerCtor(PlayerMobile, "PlayerMobile");
